<?php
/**
 * @file view.php
 * @author LD
 * @package notice
 * @desc 单篇文章的输出
 */
$this->_extends('_layouts/news_layout');

$this->_block('page_title');
echo $category->name.' - '.$post->title;
$this->_endblock();

$this->_block('page_keywords');
echo $keys->name;
$this->_endblock();

$this->_block('page_desc');
echo substr( strip_tags($post->content), 0, 200 );
$this->_endblock();
?>

<?php $this->_block('catName'); ?>
<td align="center" background="<?php echo $_BASE_DIR; ?>images/topb.gif">
	<table width="96%" border="0" cellspacing="0" cellpadding="0">
       <tr>
<td align="left"><span class="blue14"><?php echo $category->name; ?></span></td>
       </tr>
  </table>
</td>
<?php $this->_endblock(); ?>

<?php $this->_block('contents'); ?>
 <table width="90%" border="0" cellspacing="0" cellpadding="0">
        <tr>
         <td height="30" align="center"><span class="STYLE10">
         	<?php echo $post->title; ?></span></td>
         </tr>
           </table>

            <table width="92%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td height="25" align="center">
                	发布者：<?php echo $author->name; ?> 
					 发布日期：<?php echo date( "Y-m-d ",strtotime($post->date)); ?></td>
              </tr>
            </table>
            <table width="92%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td height="1" bgcolor="#eaeaea"></td>

              </tr>
            </table>
            <table width="92%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td height="52" align="left">
                <?php echo $post->content; ?>
                  <p><span class="gray"><br />
                    <br />
                  </span></p></td>
              </tr>
            </table>
<?php $this->_endblock(); ?>